import React, { Component } from "react";
import { Link } from "react-router-dom";

class Home extends Component {
  state = {};
  render() {
    return (
      <>
        <div>这是首页</div>
        <ul>
          <li>
            <Link to="/home/home1">home1页面</Link>
          </li>
          <li>
            <Link to="/home/home2">home2页面</Link>
          </li>
        </ul>

        <hr />

        {this.props.children}
      </>
    );
  }
}

export default Home;
